<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;



/**
 * App\Images
 *
 * @property int $id 图片的标识
 * @property int $file_id 文件标识
 * @property string|null $img_name 图片名
 * @property string|null $img_type 图片类型
 * @property \Illuminate\Support\Carbon|null $deleted_at
 * @property \Illuminate\Support\Carbon|null $created_at
 * @property \Illuminate\Support\Carbon|null $updated_at
 * @property-read \App\Files $files
 * @method static bool|null forceDelete()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Images newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Images newQuery()
 * @method static \Illuminate\Database\Query\Builder|\App\Images onlyTrashed()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Images query()
 * @method static bool|null restore()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Images whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Images whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Images whereFileId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Images whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Images whereImgName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Images whereImgType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Images whereUpdatedAt($value)
 * @method static \Illuminate\Database\Query\Builder|\App\Images withTrashed()
 * @method static \Illuminate\Database\Query\Builder|\App\Images withoutTrashed()
 * @mixin \Eloquent
 */
class Images extends Model
{
    protected $table = 'images';
    use SoftDeletes;

    public function files(){
        return $this->belongsTo('App\Files','file_id');
    }
}
